package com.huluobo.base

import com.huluobo.base.net.ApiService
import com.huluobo.base.net.getService
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

/**
 *  Created by LC on 2024/8/15.
 *  依赖注入的工厂,对外提供service方法
 */
@Module
@InstallIn(SingletonComponent::class)
object ProviderFactory {
    @Provides
    @Singleton
    fun service(): ApiService = getService<String>()
}